cc.Class({
  extends: cc.Component,

  properties: {
    isGame: true, //是否在游戏中
    score: 0,
    bricksNumber: 0 //多少块砖头
  },

  init() {
    this.isGame = true;
    this.score = 0;
    this.bricksNumber = 12 * 2;
  },

  addScore(score) {
    this.score += score;
  },

  minusBrick(n) {
    this.bricksNumber -= n;
  }
});
